package com.yanqu.road.entity.activity.stronghold;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.player.UserBaseInfo;

@FieldTypeAnnotation(tableName = "t_u_activity_stronghold_item_donate")
public class StrongholdItemDonate extends DataObject {
    @FieldTypeAnnotation(select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(update = true)
    private String unionUid;
    @FieldTypeAnnotation(update = true)
    private long userId;
    @FieldTypeAnnotation(update = true)
    private int type;
    @FieldTypeAnnotation
    private int value;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getUnionUid() {
        return unionUid;
    }

    public void setUnionUid(String unionUid) {
        this.unionUid = unionUid;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        if (this.value != value) {
            this.value = value;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

}
